﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="klcc.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>登入系統</title>
    <style type="text/css">
        html, body 
        {
            font-size: 13px;
        }
        #loginPanel
        {
            width: 100%;
        }
        
        #loginPanel table, #loginPanel td 
        {
            border: 1px solid #333;
            border-collapse: collapse;
        }
        
        #loginPanel td
        {
            
        }
        
        .style2
        {
            width: 80px;
            padding: 5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="loginPanel">
            <asp:Label ID="MsgLB" runat="server" Text=""></asp:Label>
            <table style="width:auto;">
                <tr>
                    <td class="style2">
                        帳號</td>
                    <td valign="middle">
                        <asp:TextBox ID="UsernameTxt" runat="server" BorderStyle="Solid"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        密碼</td>
                    <td valign="middle">
                        <asp:TextBox ID="PasswordTxt" runat="server" TextMode="Password" 
                            BorderStyle="Solid"></asp:TextBox>
                        <asp:HyperLink ID="ForgotPasswdHL" runat="server" 
                            NavigateUrl="~/PasswordRecovery.aspx">忘記密碼?</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right" valign="middle">
                        <asp:Button ID="LoginBtn" runat="server" Text="登入系統" onclick="LoginBtn_Click" />
                        
                        </td>
                </tr>
            </table>
            <asp:SqlDataSource ID="UserSqlDataSource" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:KlccConnectionString %>" 
                            SelectCommand="SELECT [username], [password], [UserId], [locked] FROM [Users]">
                        </asp:SqlDataSource>
        </div>
    </form>
</body>
</html>
